//
//  LSZVideoDetailsHeaderCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/28.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZVideoDetailsHeaderCell.h"

@implementation LSZVideoDetailsHeaderCell

-(id)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageviewBack = [[UIImageView alloc]initWithFrame:CGRectMake(0, -STATUS_BAR_HEIGHT, ScreenWidth, 160+STATUS_BAR_HEIGHT)];
        self.imageviewBack.userInteractionEnabled = YES;
        [self addSubview:self.imageviewBack];

        //添加毛玻璃效果
        UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
        UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:effect];
        effectView.frame = CGRectMake(0, 0, self.imageviewBack.frame.size.width*1.0, self.imageviewBack.frame.size.height);
        effectView.alpha = 0.8;
        [self.imageviewBack  addSubview:effectView];

        UIImageView * image = [[UIImageView alloc]initWithFrame:CGRectMake(20, STATUS_BAR_HEIGHT, 11, 19)];
        image.image = [UIImage imageNamed:@"home_nav_button_back"];
        [self.imageviewBack addSubview:image];

        self.butReturn = [[UIButton alloc]initWithFrame:CGRectMake(0, STATUS_BAR_HEIGHT,70, 55)];
        [self.imageviewBack addSubview:self.butReturn];

        self.labelTitle = [[UILabel alloc]initWithFrame:CGRectMake((ScreenWidth-200)/2,STATUS_BAR_HEIGHT, 200, 20)];
        self.labelTitle.font = FONT_20;
        self.labelTitle.textAlignment = NSTextAlignmentCenter;
        self.labelTitle.textColor = [UIColor whiteColor];
        [self.imageviewBack addSubview:self.labelTitle];
    }
    return self;
}
@end
